import { createRouter, createWebHistory } from 'vue-router'

let routes = [
  {
    path: '/books',
    component: () => import('@/views/Index.vue'),
  },
  {
    path: '/addbook',
    component: () => import('@/views/AddBook.vue'),
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router
